/*
 * Copyright (C) 2010 Seapeak.Xu
 *
 * fostmq may be copied only under the terms of the GNU General
 * Public License V3, which may be found in the fostmq source kit.
 *
 * Created on: 2010-7-28
 * Author: Seapeak.Xu
 */

#ifndef FOST_LOGGER_H_
#define FOST_LOGGER_H_
#ifdef __cplusplus
extern "C"
{
#endif

int logger_init(const char *path, const char *prefix, const int linesize,
		const int level);
void logger_close();

void log_emery(const char *format, ...);
void log_alert(const char *format, ...);
void log_crit(const char *format, ...);
void log_error(const char *format, ...);
void log_warn(const char *format, ...);
void log_notice(const char *format, ...);
void log_info(const char *format, ...);
void log_debug(const char *format, ...);

#ifdef __cplusplus
}
#endif
#endif /* FOST_LOGGER_H_ */
